// Package main provides ...
package main

import (
	"fmt"
	"runtime"
)

func main() {
	go func() {
		for i := 0; i < 5; i++ {
			fmt.Println("this is goroutine")
		}
	}()

	for i := 0; i < 5; i++ {
		fmt.Println("this is mian")
		runtime.Gosched() //主 goroutine 会让出占用的cpu时间片
	}
}
